package com.gopay.common.constants.cbrmb.customs;

public enum CustomsAppType {

	Add("新增", "1"),
	
	Edit("变更","2"),

	Delete("删除","3"),
	
	ReSend("重新发送","4");
	
	private String name;
	
	private String index;
	
	private CustomsAppType(String name,String index){
		this.name=name;
		this.index=index;
	}
	
	public static String getName(String index){
		for(CustomsAppType appType:CustomsAppType.values()){
			if(appType.getIndex().equals(index)){
				return appType.getName();
			}
		}
		return null;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getIndex() {
		return index;
	}

	public void setIndex(String index) {
		this.index = index;
	}
	
	
}
